<template>
  <view>
    <!-- 待办 -->
    <!-- 导航栏 -->
    <u-navbar :title="title" placeholder @leftClick="back" :border="false" :shadow="true"></u-navbar>

    <view class="container">
      <!-- 内容区域 -->
      <view class="apply-menu">
        <ToDoComponent :modalTitleGet="modalTitleGet"></ToDoComponent>
      </view>
    </view>
  </view>
</template>

<script>
import ToDoComponent from '@/components/ToDoComponent/index.vue';
export default {
  name: 'work-home-menu',
  components: {
    ToDoComponent
  },
  data () {
    return {
      title: '待办',
      modalTitleGet:false
    }
  },
  onShow() {
    this.modalTitleGet = uni.getStorageSync('modalTitleGet') || false
  },
  methods: {
    back () {
      uni.navigateBack({ delta: 1 });
    }
  },
}
</script>
<style lang="scss" scoped>
.container {
  .apply-menu {
    width: 100%;
  }
}
</style>
